use std::env;
use dotenvy::dotenv;

use sqlx::postgres::PgPoolOptions;


mod routes;
mod states;
mod error;
mod models;
mod handlers;
mod db_access;


#[tokio::main]
async  fn main() {

    // dotenv().ok();
    dotenv().expect(".env不存在"); //从.env中加载环境变量

    // dotenv().ok();

    let database_url = env::var("DATABASE_URL").expect("DATABASE_URL not found");


    for (k, v ) in  env::vars(){

        println!("k is {} , v is {}" , k ,v )
    }

}
